import {Dict} from "~/entity/dict";

export default {
    getDictList: async (name: string) => {
        const {data}: any = await useApi().dictApi.getDict(name);
        return data as Dict[] || [] as Dict[];
    }
}